{% extends "base.html" %}
{# Copyright The IETF Trust 2021, All Rights Reserved #}
{% load origin static %}
{% load django_bootstrap5 %}
{% block pagehead %}{{ form.media.css }}{% endblock %}
{% block title %}Create timeslot for {{ meeting }}{% endblock %}
{% block content %}
    {% origin %}
    <h1>Create timeslot for {{ meeting }}</h1>
    <form id="timeslot-form" method="post" class="my-3">
        {% csrf_token %}
        {% bootstrap_form form %}
        <button type="submit" class="btn btn-primary">Save</button>
        <a class="btn btn-secondary float-end"
           href="{% url 'ietf.meeting.views.edit_timeslots' num=meeting.number %}{% if 'sched' in request.GET %}?sched={{ request.GET.sched }}{% endif %}">Back</a>
    </form>
{% endblock %}
{% block js %}
    <script src="{% static 'ietf/js/create_timeslot.js' %}"></script>
    {{ form.media.js }}
{% endblock %}